package com.leyou.item.Api;

import com.leyou.item.pojo.Brand;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@RequestMapping("brand")
public interface BrandApi {

    /**
     * search服务调用 根据bid查询品牌名称
     *
     * @param bid
     * @return
     */
    @GetMapping("name")
    String queryNameById(@RequestParam("bid") Long bid);


    @GetMapping("bids")
    List<Brand> queryBrandByBids(@RequestParam("bids") List<Long> bids);
}
